<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>airline-res: AirlineRes::RecordManager&lt; RecordType &gt; Class Template Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">airline-res
   
   </div>
   <div id="projectbrief">A prototype airline flight booking system</div>
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.5.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="inherits.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><b>AirlineRes</b>      </li>
      <li class="navelem"><a class="el" href="class_airline_res_1_1_record_manager.html">RecordManager</a>      </li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#nested-classes">Classes</a> &#124;
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pri-methods">Private Member Functions</a> &#124;
<a href="#pri-attribs">Private Attributes</a>  </div>
  <div class="headertitle">
<div class="title">AirlineRes::RecordManager&lt; RecordType &gt; Class Template Reference</div>  </div>
</div>
<div class="contents">
<!-- doxytag: class="AirlineRes::RecordManager" -->
<p>Class to store and manage all Records of a particular type, e.g. customer, flight.  
 <a href="class_airline_res_1_1_record_manager.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="_record_manager_8h_source.html">RecordManager.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for AirlineRes::RecordManager&lt; RecordType &gt;:</div>
<div class="dyncontent">
<div class="center"><img src="class_airline_res_1_1_record_manager__inherit__graph.png" border="0" usemap="#_airline_res_1_1_record_manager_3_01_record_type_01_4_inherit__map" alt="Inheritance graph"/></div>
<map name="_airline_res_1_1_record_manager_3_01_record_type_01_4_inherit__map" id="_airline_res_1_1_record_manager_3_01_record_type_01_4_inherit__map">
<area shape="rect" id="node3" href="class_airline_res_1_1_record_manager.html" title="{AirlineRes::RecordManager\&lt; BookingRecord \&gt;\n|&#45; m_maxID\l&#45; m_records\l|+ RecordManager()\l+ ~RecordManager()\l+ LoadRecords()\l+ WriteRecords()\l+ PrintRecords()\l+ GetRecordSet()\l+ GetRecord()\l+ AddRecord()\l+ EditRecord()\l+ DeleteRecord()\l&#45; UpdateMaxID()\l}" alt="" coords="5,310,296,549"/><area shape="rect" id="node5" href="class_airline_res_1_1_record_manager.html" title="{AirlineRes::RecordManager\&lt; FlightRecord \&gt;\n|&#45; m_maxID\l&#45; m_records\l|+ RecordManager()\l+ ~RecordManager()\l+ LoadRecords()\l+ WriteRecords()\l+ PrintRecords()\l+ GetRecordSet()\l+ GetRecord()\l+ AddRecord()\l+ EditRecord()\l+ DeleteRecord()\l&#45; UpdateMaxID()\l}" alt="" coords="321,310,599,549"/><area shape="rect" id="node7" href="class_airline_res_1_1_record_manager.html" title="{AirlineRes::RecordManager\&lt; CustomerRecord \&gt;\n|&#45; m_maxID\l&#45; m_records\l|+ RecordManager()\l+ ~RecordManager()\l+ LoadRecords()\l+ WriteRecords()\l+ PrintRecords()\l+ GetRecordSet()\l+ GetRecord()\l+ AddRecord()\l+ EditRecord()\l+ DeleteRecord()\l&#45; UpdateMaxID()\l}" alt="" coords="623,310,924,549"/><area shape="rect" id="node9" href="class_airline_res_1_1_record_manager.html" title="{AirlineRes::RecordManager\&lt; UserRecord \&gt;\n|&#45; m_maxID\l&#45; m_records\l|+ RecordManager()\l+ ~RecordManager()\l+ LoadRecords()\l+ WriteRecords()\l+ PrintRecords()\l+ GetRecordSet()\l+ GetRecord()\l+ AddRecord()\l+ EditRecord()\l+ DeleteRecord()\l&#45; UpdateMaxID()\l}" alt="" coords="948,310,1220,549"/></map>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>

<p><a href="class_airline_res_1_1_record_manager-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="nested-classes"></a>
Classes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_airline_res_1_1_record_manager_1_1_record_set_comparator.html">RecordSetComparator</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Comparator used internally by the RecordSet set to determine placement of records.  <a href="class_airline_res_1_1_record_manager_1_1_record_set_comparator.html#details">More...</a><br/></td></tr>
<tr><td colspan="2"><h2><a name="pub-types"></a>
Public Types</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ae391764694b3fbc02f35b6ee1598edd9"></a><!-- doxytag: member="AirlineRes::RecordManager::RecordSet" ref="ae391764694b3fbc02f35b6ee1598edd9" args="" -->
typedef std::set&lt; RecordType, <br class="typebreak"/>
<a class="el" href="class_airline_res_1_1_record_manager_1_1_record_set_comparator.html">RecordSetComparator</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_airline_res_1_1_record_manager.html#ae391764694b3fbc02f35b6ee1598edd9">RecordSet</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">A std::set of RecordType Records. <br/></td></tr>
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_airline_res_1_1_record_manager.html#aa133d22b4b6340a81ea0787c0fc777be">LoadRecords</a> (std::string const &amp;_filePath)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_airline_res_1_1_record_manager.html#aa285caf09fe5c29073a3fa71c5fd751d">WriteRecords</a> (std::string const &amp;_filePath)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_airline_res_1_1_record_manager.html#a54b83e047c87b34cf7f0284806127eaf">PrintRecords</a> (std::ostream &amp;_stream)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_airline_res_1_1_record_manager.html#ae391764694b3fbc02f35b6ee1598edd9">RecordSet</a> const *const&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_airline_res_1_1_record_manager.html#a5d8cc3cfcef3d721edc45f18d31ae68a">GetRecordSet</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">RecordType const *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_airline_res_1_1_record_manager.html#ae4486c6ced093ea1d2002bba58dabfba">GetRecord</a> (int _id) const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_airline_res_1_1_record_manager.html#ac857f3dd39b92e73eaa9a40e8b7019f5">AddRecord</a> (RecordType const &amp;_record)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_airline_res_1_1_record_manager.html#a86495e023c7733c5b00723f32eb6dbf5">EditRecord</a> (RecordType const &amp;_record)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_airline_res_1_1_record_manager.html#a9c4e47b5984d2c9b679925c9cf80cccb">DeleteRecord</a> (int _id)</td></tr>
<tr><td colspan="2"><h2><a name="pri-methods"></a>
Private Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a1c6021cf491809848cd3f31960800d97"></a><!-- doxytag: member="AirlineRes::RecordManager::UpdateMaxID" ref="a1c6021cf491809848cd3f31960800d97" args="()" -->
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_airline_res_1_1_record_manager.html#a1c6021cf491809848cd3f31960800d97">UpdateMaxID</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Internally used book-keeping function for determining the next unique ID to use when AddRecord is called. <br/></td></tr>
<tr><td colspan="2"><h2><a name="pri-attribs"></a>
Private Attributes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a330e749ff16eeef14c095f519e219d74"></a><!-- doxytag: member="AirlineRes::RecordManager::m_maxID" ref="a330e749ff16eeef14c095f519e219d74" args="" -->
int&#160;</td><td class="memItemRight" valign="bottom"><b>m_maxID</b></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a51a66ab8e5118fb7f2b54d7c76c6c49f"></a><!-- doxytag: member="AirlineRes::RecordManager::m_records" ref="a51a66ab8e5118fb7f2b54d7c76c6c49f" args="" -->
<a class="el" href="class_airline_res_1_1_record_manager.html#ae391764694b3fbc02f35b6ee1598edd9">RecordSet</a>&#160;</td><td class="memItemRight" valign="bottom"><b>m_records</b></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><h3>template&lt;class RecordType&gt;<br/>
class AirlineRes::RecordManager&lt; RecordType &gt;</h3>

<p>Class to store and manage all Records of a particular type, e.g. customer, flight. </p>

<p>Definition at line <a class="el" href="_record_manager_8h_source.html#l00013">13</a> of file <a class="el" href="_record_manager_8h_source.html">RecordManager.h</a>.</p>
</div><hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="ac857f3dd39b92e73eaa9a40e8b7019f5"></a><!-- doxytag: member="AirlineRes::RecordManager::AddRecord" ref="ac857f3dd39b92e73eaa9a40e8b7019f5" args="(RecordType const &amp;_record)" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class RecordType&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="class_airline_res_1_1_record_manager.html">AirlineRes::RecordManager</a>&lt; RecordType &gt;::AddRecord </td>
          <td>(</td>
          <td class="paramtype">RecordType const &amp;&#160;</td>
          <td class="paramname"><em>_record</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Adds a record to the record set. Automatically sets an appropriate ID value for the record.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">_record</td><td><a class="el" href="class_airline_res_1_1_record.html">Record</a> object to add.</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>An error code represting whether or not the operation was a success. </dd></dl>

<p>Definition at line <a class="el" href="_record_manager_8inl_source.html#l00089">89</a> of file <a class="el" href="_record_manager_8inl_source.html">RecordManager.inl</a>.</p>

<p>Referenced by <a class="el" href="_airline_reservation_system_8cpp_source.html#l01475">AirlineRes::AirlineReservationSystem::AddBookingProcedure()</a>, <a class="el" href="_airline_reservation_system_8cpp_source.html#l01422">AirlineRes::AirlineReservationSystem::AddCustomerProcedure()</a>, <a class="el" href="_airline_reservation_system_8cpp_source.html#l01589">AirlineRes::AirlineReservationSystem::AddFlightProcedure()</a>, and <a class="el" href="_airline_reservation_system_8cpp_source.html#l01656">AirlineRes::AirlineReservationSystem::AddUserProcedure()</a>.</p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="class_airline_res_1_1_record_manager_ac857f3dd39b92e73eaa9a40e8b7019f5_icgraph.png" border="0" usemap="#class_airline_res_1_1_record_manager_ac857f3dd39b92e73eaa9a40e8b7019f5_icgraph" alt=""/></div>
<map name="class_airline_res_1_1_record_manager_ac857f3dd39b92e73eaa9a40e8b7019f5_icgraph" id="class_airline_res_1_1_record_manager_ac857f3dd39b92e73eaa9a40e8b7019f5_icgraph">
<area shape="rect" id="node3" href="class_airline_res_1_1_airline_reservation_system.html#ad8363d3a2927ddc8e6f287cfcbb5b3fc" title="AirlineRes::AirlineReservationSystem::AddBookingProcedure" alt="" coords="311,5,686,32"/><area shape="rect" id="node5" href="class_airline_res_1_1_airline_reservation_system.html#a2921868982dc78a7dff1bc64c45aea0b" title="AirlineRes::AirlineReservationSystem::AddCustomerProcedure" alt="" coords="307,56,690,83"/><area shape="rect" id="node7" href="class_airline_res_1_1_airline_reservation_system.html#a0e8e9d1d1247349e37c1e6081b856817" title="AirlineRes::AirlineReservationSystem::AddFlightProcedure" alt="" coords="319,107,678,133"/><area shape="rect" id="node9" href="class_airline_res_1_1_airline_reservation_system.html#ac585cedd9497fe050623a632868f4c06" title="AirlineRes::AirlineReservationSystem::AddUserProcedure" alt="" coords="321,157,676,184"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a9c4e47b5984d2c9b679925c9cf80cccb"></a><!-- doxytag: member="AirlineRes::RecordManager::DeleteRecord" ref="a9c4e47b5984d2c9b679925c9cf80cccb" args="(int _id)" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class RecordType &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="class_airline_res_1_1_record_manager.html">AirlineRes::RecordManager</a>&lt; RecordType &gt;::DeleteRecord </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>_id</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Deletes a record from the record set.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">_id</td><td>ID of the record to delete.</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>An error code represting whether or not the operation was a success. </dd></dl>

<p>Definition at line <a class="el" href="_record_manager_8inl_source.html#l00110">110</a> of file <a class="el" href="_record_manager_8inl_source.html">RecordManager.inl</a>.</p>

</div>
</div>
<a class="anchor" id="a86495e023c7733c5b00723f32eb6dbf5"></a><!-- doxytag: member="AirlineRes::RecordManager::EditRecord" ref="a86495e023c7733c5b00723f32eb6dbf5" args="(RecordType const &amp;_record)" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class RecordType&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="class_airline_res_1_1_record_manager.html">AirlineRes::RecordManager</a>&lt; RecordType &gt;::EditRecord </td>
          <td>(</td>
          <td class="paramtype">RecordType const &amp;&#160;</td>
          <td class="paramname"><em>_record</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Modifies the data of a pre-existing record, the record's ID remains constant.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">_record</td><td>A <a class="el" href="class_airline_res_1_1_record.html">Record</a> object containing modified data but with the same ID as the old record.</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>An error code represting whether or not the operation was a success. </dd></dl>

<p>Definition at line <a class="el" href="_record_manager_8inl_source.html#l00098">98</a> of file <a class="el" href="_record_manager_8inl_source.html">RecordManager.inl</a>.</p>

</div>
</div>
<a class="anchor" id="ae4486c6ced093ea1d2002bba58dabfba"></a><!-- doxytag: member="AirlineRes::RecordManager::GetRecord" ref="ae4486c6ced093ea1d2002bba58dabfba" args="(int _id) const " -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class RecordType &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">RecordType const * <a class="el" href="class_airline_res_1_1_record_manager.html">AirlineRes::RecordManager</a>&lt; RecordType &gt;::GetRecord </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>_id</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Get a specific <a class="el" href="class_airline_res_1_1_record.html">Record</a>, given its ID.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">_id</td><td>ID of the record.</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>Pointer to the <a class="el" href="class_airline_res_1_1_record.html">Record</a> or a null pointer if no such record exists. </dd></dl>

<p>Definition at line <a class="el" href="_record_manager_8inl_source.html#l00072">72</a> of file <a class="el" href="_record_manager_8inl_source.html">RecordManager.inl</a>.</p>

</div>
</div>
<a class="anchor" id="a5d8cc3cfcef3d721edc45f18d31ae68a"></a><!-- doxytag: member="AirlineRes::RecordManager::GetRecordSet" ref="a5d8cc3cfcef3d721edc45f18d31ae68a" args="() const " -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class RecordType&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_airline_res_1_1_record_manager.html#ae391764694b3fbc02f35b6ee1598edd9">RecordSet</a> const* const <a class="el" href="class_airline_res_1_1_record_manager.html">AirlineRes::RecordManager</a>&lt; RecordType &gt;::GetRecordSet </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Get a pointer to the RecordSet for the purpose of querying for records.</p>
<dl class="return"><dt><b>Returns:</b></dt><dd>Pointer to the RecordSet. </dd></dl>

<p>Definition at line <a class="el" href="_record_manager_8h_source.html#l00055">55</a> of file <a class="el" href="_record_manager_8h_source.html">RecordManager.h</a>.</p>

<p>Referenced by <a class="el" href="_airline_reservation_system_8cpp_source.html#l01422">AirlineRes::AirlineReservationSystem::AddCustomerProcedure()</a>, <a class="el" href="_airline_reservation_system_8cpp_source.html#l02207">AirlineRes::AirlineReservationSystem::GetCustomerList()</a>, <a class="el" href="_airline_reservation_system_8cpp_source.html#l01905">AirlineRes::AirlineReservationSystem::GetFlightShortList()</a>, <a class="el" href="_airline_reservation_system_8cpp_source.html#l02163">AirlineRes::AirlineReservationSystem::IsCustomerIDValid()</a>, <a class="el" href="_airline_reservation_system_8cpp_source.html#l01972">AirlineRes::AirlineReservationSystem::IsFlightIDValid()</a>, <a class="el" href="_airline_reservation_system_8cpp_source.html#l02061">AirlineRes::AirlineReservationSystem::IsSpace()</a>, and <a class="el" href="_airline_reservation_system_8cpp_source.html#l00062">AirlineRes::AirlineReservationSystem::LoginScreen()</a>.</p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="class_airline_res_1_1_record_manager_a5d8cc3cfcef3d721edc45f18d31ae68a_icgraph.png" border="0" usemap="#class_airline_res_1_1_record_manager_a5d8cc3cfcef3d721edc45f18d31ae68a_icgraph" alt=""/></div>
<map name="class_airline_res_1_1_record_manager_a5d8cc3cfcef3d721edc45f18d31ae68a_icgraph" id="class_airline_res_1_1_record_manager_a5d8cc3cfcef3d721edc45f18d31ae68a_icgraph">
<area shape="rect" id="node3" href="class_airline_res_1_1_airline_reservation_system.html#a2921868982dc78a7dff1bc64c45aea0b" title="AirlineRes::AirlineReservationSystem::AddCustomerProcedure" alt="" coords="326,5,709,32"/><area shape="rect" id="node5" href="class_airline_res_1_1_airline_reservation_system.html#a9ab02a986b44cc3ba0d704ad520b11fc" title="AirlineRes::AirlineReservationSystem::GetCustomerList" alt="" coords="346,56,689,83"/><area shape="rect" id="node7" href="class_airline_res_1_1_airline_reservation_system.html#a6c9a2ade00bac370e23cfa0bbb672deb" title="AirlineRes::AirlineReservationSystem::GetFlightShortList" alt="" coords="342,107,693,133"/><area shape="rect" id="node9" href="class_airline_res_1_1_airline_reservation_system.html#a7908d22251782f8101763c13c5185afa" title="AirlineRes::AirlineReservationSystem::IsCustomerIDValid" alt="" coords="341,157,693,184"/><area shape="rect" id="node13" href="class_airline_res_1_1_airline_reservation_system.html#ab2bf6ab1ad15a048aef40f9b6aa5af22" title="AirlineRes::AirlineReservationSystem::IsFlightIDValid" alt="" coords="353,208,681,235"/><area shape="rect" id="node17" href="class_airline_res_1_1_airline_reservation_system.html#a46ed155cb4f40ef0a545464f8cd98ecd" title="AirlineRes::AirlineReservationSystem::IsSpace" alt="" coords="371,259,663,285"/><area shape="rect" id="node19" href="class_airline_res_1_1_airline_reservation_system.html#aff0d51097f5005c495bb86647552af70" title="AirlineRes::AirlineReservationSystem::LoginScreen" alt="" coords="359,309,676,336"/><area shape="rect" id="node11" href="class_airline_res_1_1_airline_reservation_system.html#a351ff329b6a1b44654a4d9c051d6676e" title="AirlineRes::AirlineReservationSystem::GetCustomerIDChoice" alt="" coords="758,157,1133,184"/><area shape="rect" id="node15" href="class_airline_res_1_1_airline_reservation_system.html#a537e38eeab0a3419f8e8db98854ac74f" title="AirlineRes::AirlineReservationSystem::GetFlightIDChoice" alt="" coords="770,208,1121,235"/><area shape="rect" id="node21" href="class_airline_res_1_1_airline_reservation_system.html#ab8580997fb87edb39121111709405685" title="Called to start the system, i.e. begin responding interactively to user input." alt="" coords="811,309,1079,336"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="aa133d22b4b6340a81ea0787c0fc777be"></a><!-- doxytag: member="AirlineRes::RecordManager::LoadRecords" ref="aa133d22b4b6340a81ea0787c0fc777be" args="(std::string const &amp;_filePath)" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class RecordType &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="class_airline_res_1_1_record_manager.html">AirlineRes::RecordManager</a>&lt; RecordType &gt;::LoadRecords </td>
          <td>(</td>
          <td class="paramtype">std::string const &amp;&#160;</td>
          <td class="paramname"><em>_filePath</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Open a file and reads in data as records of RecordType, storing them in the RecordSet.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">_filePath</td><td>Full or relative file path of the file to read from.</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>An error code represting whether or not the operation was a success. </dd></dl>

<p>Definition at line <a class="el" href="_record_manager_8inl_source.html#l00008">8</a> of file <a class="el" href="_record_manager_8inl_source.html">RecordManager.inl</a>.</p>

<p>Referenced by <a class="el" href="_airline_reservation_system_8cpp_source.html#l00021">AirlineRes::AirlineReservationSystem::Init()</a>.</p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="class_airline_res_1_1_record_manager_aa133d22b4b6340a81ea0787c0fc777be_icgraph.png" border="0" usemap="#class_airline_res_1_1_record_manager_aa133d22b4b6340a81ea0787c0fc777be_icgraph" alt=""/></div>
<map name="class_airline_res_1_1_record_manager_aa133d22b4b6340a81ea0787c0fc777be_icgraph" id="class_airline_res_1_1_record_manager_aa133d22b4b6340a81ea0787c0fc777be_icgraph">
<area shape="rect" id="node3" href="class_airline_res_1_1_airline_reservation_system.html#a56107efb9c95e6ca63db1e571c59171a" title="Called to initialised the system." alt="" coords="318,5,581,32"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a54b83e047c87b34cf7f0284806127eaf"></a><!-- doxytag: member="AirlineRes::RecordManager::PrintRecords" ref="a54b83e047c87b34cf7f0284806127eaf" args="(std::ostream &amp;_stream)" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class RecordType &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="class_airline_res_1_1_record_manager.html">AirlineRes::RecordManager</a>&lt; RecordType &gt;::PrintRecords </td>
          <td>(</td>
          <td class="paramtype">std::ostream &amp;&#160;</td>
          <td class="paramname"><em>_stream</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Prints every record in the RecordSet to the specified stream.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">_stream</td><td>An ostream object to write to.</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>An error code represting whether or not the operation was a success. </dd></dl>

<p>Definition at line <a class="el" href="_record_manager_8inl_source.html#l00062">62</a> of file <a class="el" href="_record_manager_8inl_source.html">RecordManager.inl</a>.</p>

</div>
</div>
<a class="anchor" id="aa285caf09fe5c29073a3fa71c5fd751d"></a><!-- doxytag: member="AirlineRes::RecordManager::WriteRecords" ref="aa285caf09fe5c29073a3fa71c5fd751d" args="(std::string const &amp;_filePath)" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class RecordType &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="class_airline_res_1_1_record_manager.html">AirlineRes::RecordManager</a>&lt; RecordType &gt;::WriteRecords </td>
          <td>(</td>
          <td class="paramtype">std::string const &amp;&#160;</td>
          <td class="paramname"><em>_filePath</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Open a file and write all records stored this <a class="el" href="class_airline_res_1_1_record_manager.html" title="Class to store and manage all Records of a particular type, e.g. customer, flight.">RecordManager</a> to it.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">_filePath</td><td>Full or relative file path of the file to write to.</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>An error code represting whether or not the operation was a success. </dd></dl>

<p>Definition at line <a class="el" href="_record_manager_8inl_source.html#l00042">42</a> of file <a class="el" href="_record_manager_8inl_source.html">RecordManager.inl</a>.</p>

<p>Referenced by <a class="el" href="_airline_reservation_system_8cpp_source.html#l00035">AirlineRes::AirlineReservationSystem::Shutdown()</a>.</p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="class_airline_res_1_1_record_manager_aa285caf09fe5c29073a3fa71c5fd751d_icgraph.png" border="0" usemap="#class_airline_res_1_1_record_manager_aa285caf09fe5c29073a3fa71c5fd751d_icgraph" alt=""/></div>
<map name="class_airline_res_1_1_record_manager_aa285caf09fe5c29073a3fa71c5fd751d_icgraph" id="class_airline_res_1_1_record_manager_aa285caf09fe5c29073a3fa71c5fd751d_icgraph">
<area shape="rect" id="node3" href="class_airline_res_1_1_airline_reservation_system.html#ace963e7380e7ee4508113a642c370d80" title="Called after the user has exited the system." alt="" coords="321,5,623,32"/><area shape="rect" id="node5" href="class_airline_res_1_1_airline_reservation_system.html#a5810c1b2bf7f1939cf8835802d2b6715" title="AirlineRes::AirlineReservationSystem::ExitConfirmation" alt="" coords="673,5,1013,32"/></map>
</div>
</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>C:/Users/Joe/Development/Projects/University/FormalMethods/airline-res/include/<a class="el" href="_record_manager_8h_source.html">RecordManager.h</a></li>
<li>C:/Users/Joe/Development/Projects/University/FormalMethods/airline-res/include/inl/<a class="el" href="_record_manager_8inl_source.html">RecordManager.inl</a></li>
</ul>
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Enumerations</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>



<hr class="footer"/><address class="footer"><small>
Generated on Wed Dec 14 2011 22:49:42 for airline-res by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.5.1
</small></address>

</body>
</html>
